package com.wuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张钧程
 * @since 2022-09-30
 */
@TableName("tb_house")
@ApiModel(value = "House对象", description = "")
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("房屋id")
    @TableId(value = "house_id", type = IdType.AUTO)
    private Long houseId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("户型(0 : 一居 , 1 : 二居 , 2 : 三居 , 3 : 四居及以上)")
    private Integer houseType;

    @ApiModelProperty("租金")
    private BigDecimal rent;

    @ApiModelProperty("支付方式(0支付宝1微信2现金)")
    private Integer payType;

    @ApiModelProperty("图片")
    private String houseImage;

    @ApiModelProperty("房东")
    private String hostId;

    @ApiModelProperty("上线时间")
    private Date startTime;

    @ApiModelProperty("咨询量")
    private Integer consultNum;

    @ApiModelProperty("看房量")
    private Integer visitNum;

    @ApiModelProperty("标签id")
    private Long tagId;

    @ApiModelProperty("状态(0未出租1出租)")
    private Integer status;

    @ApiModelProperty("备用字段1")
    private String spare1;

    @ApiModelProperty("备用字段2")
    private String spare2;

    public Long getHouseId() {
        return houseId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public Integer getHouseType() {
        return houseType;
    }

    public void setHouseType(Integer houseType) {
        this.houseType = houseType;
    }
    public BigDecimal getRent() {
        return rent;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }
    public String getHouseImage() {
        return houseImage;
    }

    public void setHouseImage(String houseImage) {
        this.houseImage = houseImage;
    }
    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Integer getConsultNum() {
        return consultNum;
    }

    public void setConsultNum(Integer consultNum) {
        this.consultNum = consultNum;
    }
    public Integer getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(Integer visitNum) {
        this.visitNum = visitNum;
    }
    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1;
    }
    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    @Override
    public String toString() {
        return "House{" +
            "houseId=" + houseId +
            ", title=" + title +
            ", houseType=" + houseType +
            ", rent=" + rent +
            ", payType=" + payType +
            ", houseImage=" + houseImage +
            ", hostId=" + hostId +
            ", startTime=" + startTime +
            ", consultNum=" + consultNum +
            ", visitNum=" + visitNum +
            ", tagId=" + tagId +
            ", status=" + status +
            ", spare1=" + spare1 +
            ", spare2=" + spare2 +
        "}";
    }
}
